home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Washington_1988 / DevCon88.3 / Printer / src / Okimate20 / data.c next >
Encoding:
Text File  |  1992-08-27  |  6.6 KB  |  232 lines

  1. /*
  2.     Data.c table for Okimate-20 driver.
  3.     David Berezowski - March/88.
  4.  
  5.   Copyright (c) 1988 Commodore-Amiga, Inc.
  6.  
  7.   Executables based on this information may be used in software
  8.   for Commodore Amiga computers.  All other rights reserved.
  9.  
  10.   This information is provided "as is"; no warranties are made.
  11.   All use is at your own risk, and no liability or responsibility is assumed.
  12. */
  13.  
  14.  
  15. char *CommandTable[]= {
  16.             /* 00 aRIS reset            */
  17.        "\033W\376\022\033A\014\0332\033I\001\033%H\033-\376\033T\033C\376\011",
  18.     "\377",        /* 01 aRIN initialize            */
  19.     "\012",        /* 02 aIND linefeed            */
  20.     "\377",        /* 03 aNEL CRLF                */
  21.     "\377",        /* 04 aRI reverse LF            */
  22.     
  23.             /* 05 aSGR0 normal char set        */
  24.     "\033%H\033-\376",
  25.     "\033%G",    /* 06 aSGR3 italics on            */
  26.     "\033%H",    /* 07 aSGR23 italics off        */
  27.     "\033-\001",    /* 08 aSGR4 underline on        */
  28.     "\033-\376",    /* 09 aSGR24 underline off        */
  29.     "\377",        /* 10 aSGR1 boldface on            */
  30.     "\377",        /* 11 aSGR22 boldface off        */
  31.     "\377",        /* 12 aSFC set foreground color        */
  32.     "\377",        /* 13 aSBC set background color        */
  33.     
  34.     "\022\033W\376",/* 14 aSHORP0 normal pitch        */
  35.     "\033:",    /* 15 aSHORP2 elite on            */
  36.     "\022",        /* 16 aSHORP1 elite off            */
  37.     "\017",        /* 17 aSHORP4 condensed fine on        */
  38.     "\022",        /* 18 aSHORP3 condensed fine off    */
  39.     "\033W\001",    /* 19 aSHORP6 enlarge on        */
  40.     "\033W\376",    /* 20 aSHORP5 enlarge off        */
  41.     
  42.     "\377",        /* 21 aDEN6 shadow print on        */
  43.     "\377",        /* 22 aDEN5 shadow print off        */
  44.     "\377",        /* 23 aDEN4 double strike on        */
  45.     "\377",        /* 24 aDEN3 double strike off        */
  46.     "\033I\002",    /* 25 aDEN2 NLQ on            */
  47.     "\033I\001",    /* 26 aDEN1 NLQ off            */
  48.     
  49.     "\033S\376",    /* 27 aSUS2 superscript on        */
  50.     "\033T",    /* 28 aSUS1 superscript off        */
  51.     "\033S\001",    /* 29 aSUS4 subscript on        */
  52.     "\033T",    /* 30 aSUS3 subscript off        */
  53.     "\033T",    /* 31 aSUS0 normalize the line        */
  54.     "\377",        /* 32 aPLU partial line up        */
  55.     "\377",        /* 33 aPLD partial line down        */
  56.     
  57.     "\377",        /* 34 aFNT0 Typeface 0            */
  58.     "\377",        /* 35 aFNT1 Typeface 1            */
  59.     "\377",        /* 36 aFNT2 Typeface 2            */
  60.     "\377",        /* 37 aFNT3 Typeface 3            */
  61.     "\377",        /* 38 aFNT4 Typeface 4            */
  62.     "\377",        /* 39 aFNT5 Typeface 5            */
  63.     "\377",        /* 40 aFNT6 Typeface 6            */
  64.     "\377",        /* 41 aFNT7 Typeface 7            */
  65.     "\377",        /* 42 aFNT8 Typeface 8            */
  66.     "\377",        /* 43 aFNT9 Typeface 9            */
  67.     "\377",        /* 44 aFNT10 Typeface 10        */
  68.     
  69.     "\377",        /* 45 aPROP2 proportional on        */
  70.     "\377",        /* 46 aPROP1 proportional off        */
  71.     "\377",        /* 47 aPROP0 proportional clear        */
  72.     "\377",        /* 48 aTSS set proportional offset    */
  73.     "\377",        /* 49 aJFY5 auto left justify        */
  74.     "\377",        /* 50 aJFY7 auto right justify        */
  75.     "\377",        /* 51 aJFY6 auto full jusitfy        */
  76.     "\377",        /* 52 aJFY0 auto jusity off        */
  77.     "\377",        /* 53 aJFY3 letter space        */
  78.     "\377",        /* 54 aJFY1 word fill            */
  79.     
  80.     "\0330",    /* 55 aVERP0 1/8" line spacing        */
  81.             /* 56 aVERP1 1/6" line spacing        */
  82.     "\033A\014\0332",
  83.     "\033C",    /* 57 aSLPP set form length        */
  84.     "\033N\001",    /* 58 aPERF perf skip n (n > 0)        */
  85.     "\033O",    /* 59 aPERF0 perf skip off        */
  86.     
  87.     "\377",        /* 60 aLMS set left margin        */
  88.     "\377",        /* 61 aRMS set right margin        */
  89.     "\377",        /* 62 aTMS set top margin        */
  90.     "\377",        /* 63 aBMS set bottom margin        */
  91.     "\377",        /* 64 aSTBM set T&B margins        */
  92.     "\377",        /* 65 aSLRM set L&R margins        */
  93.     "\377",        /* 66 aCAM clear margins        */
  94.     
  95.     "\377",        /* 67 aHTS set horiz tab        */
  96.     "\377",        /* 68 aVTS set vert tab            */
  97.     "\377",        /* 69 aTBC0 clear horiz tab        */
  98.     "\033D\376",    /* 70 aTBC3 clear all horiz tabs    */
  99.     "\377",        /* 71 aTBC1 clear vert tab        */
  100.     "\033D\376",    /* 72 aTBC4 clear all vert tabs        */
  101.     "\377",        /* 73 aTBCALL clear all h & v tabs    */
  102.             /* 74 aTBSALL set default tabs        */
  103.     "\033D\010\020\030\040\050\060\070\100\110\120\376",
  104.  
  105.     "\377",        /* 75 aEXTEND extended commands        */
  106.     "\377"        /* 76 aRAW next 'n' chars are raw    */
  107. };
  108.  
  109. char *ExtendedCharTable[] = {
  110. /*
  111.     " ", "!", "c", "L", "o", "Y", "|", "S",
  112.     "\"", "c", "a", "`", "~", "-", "r", "-",
  113.     "*", "+", "2", "3", "'", "u", "P", ".",
  114.     ",", "1", "o", "'", "/", "/", "/", "?",
  115.     "A", "A", "A", "A", "A", "A", "A", "C",
  116.     "E", "E", "E", "E", "I", "I", "I", "I",
  117.     "D", "N", "O", "O", "O", "O", "O", "x",
  118.     "O", "U", "U", "U", "U", "Y", "T", "3",
  119.     "a", "a", "a", "a", "a", "a", "a", "c",
  120.     "e", "e", "e", "e", "i", "i", "i", "i",
  121.     "d", "n", "o", "o", "o", "o", "o", "/",
  122.     "o", "u", "u", "u", "u", "y", "t", "y"
  123. */
  124.     " ",            /*    ok */
  125.     "\255",            /* !  ok */
  126.     "\0336\233\0337",    /* "  ok */
  127.     "\0336\234\0337",    /* #  ok */
  128.     "\033S\\000o\033T",    /* $  ok */
  129.     "\0336\235\0337",    /* %  ok */
  130.     "\174",            /* &  ok */
  131.     "\0336\025\0337",    /* '  ok */
  132.  
  133.     "\"",            /* (  ok */
  134.     "c",            /* )  ok */
  135.     "\246",            /* *  ok */
  136.     "\256",            /* +  ok */
  137.     "\252",            /* ,  ok */
  138.     "-",            /* -  ok */
  139.     "r",            /* .  ok */
  140.     "\304",            /* /  ok */
  141.  
  142.     "\370",            /* 0  ok */
  143.     "\361",            /* 1  ok */
  144.     "\033S\\0002\033T",    /* 2  ok */
  145.     "\033S\\0003\033T",     /* 3  ok */
  146.     "'",            /* 4  ok */
  147.     "\346",            /* 5  ok */
  148.     "P",            /* 6  ok */
  149.     "\371",            /* 7  ok */
  150.  
  151.     ",",            /* 8  ok */
  152.     "\033S\\0001\033T",     /* 9  ok */
  153.     "\247",            /* :  ok */
  154.     "\257",            /* ;  ok */
  155.     "\254",            /* <  ok */
  156.     "\253",            /* =  ok */
  157.     "/",            /* >  ok */
  158.     "\250",            /* ?  ok */
  159.  
  160.     "A",            /* @  ok */
  161.     "A",            /* A  ok */
  162.     "A",            /* B  ok */
  163.     "A",            /* C  ok */
  164.     "\0336\216\0337",    /* D  ok */
  165.     "\0336\217\0337",    /* E  ok */
  166.     "\0336\222\0337",    /* F  ok */
  167.     "\0336\200\0337",    /* G  ok */
  168.  
  169.     "E",            /* H  ok */
  170.     "\0336\220\0337",    /* I  ok */
  171.     "E",            /* J  ok */
  172.     "E",            /* K  ok */
  173.     "I",            /* L  ok */
  174.     "I",            /* M  ok */
  175.     "I",            /* N  ok */
  176.     "I",            /* O  ok */
  177.  
  178.     "D",            /* P  ok */
  179.     "\245",            /* Q  ok */
  180.     "O",            /* R  ok */
  181.     "O",            /* S  ok */
  182.     "O",            /* T  ok */
  183.     "O",            /* U  ok */
  184.     "\0336\231\0337",    /* V  ok */
  185.     "x",            /* W  ok */
  186.  
  187.     "\355",            /* X  ok */
  188.     "U",            /* Y  ok */
  189.     "U",            /* Z  ok */
  190.     "U",            /* [  ok */
  191.     "\0336\232\0337",    /* \  ok */
  192.     "Y",            /* ]  ok */
  193.     "T",            /* ^  ok */
  194.     "\341",            /* _  ok */
  195.  
  196.     "\0336\205\0337",    /* `  ok */
  197.     "\240",            /* a  ok */
  198.     "\0336\203\0337",    /* b  ok */
  199.     "a",            /* c  ok */
  200.     "\0336\204\0337",    /* d  ok */
  201.     "\0336\206\0337",    /* e  ok */
  202.     "\0336\221\0337",    /* f  ok */
  203.     "\0336\207\0337",    /* g  ok */
  204.  
  205.     "\0336\212\0337",    /* h  ok */
  206.     "\0336\202\0337",    /* i  ok */
  207.     "\0336\210\0337",    /* j  ok */
  208.     "\0336\211\0337",    /* k  ok */
  209.     "\0336\215\0337",    /* l  ok */
  210.     "\241",            /* m  ok */
  211.     "\0336\214\0337",    /* n  ok */
  212.     "\0336\213\0337",    /* o  ok */
  213.  
  214.     "d",            /* p  ok */
  215.     "\244",            /* q  ok */
  216.     "\0336\225\0337",    /* r  ok */
  217.     "\242",            /* s  ok */
  218.     "\0336\223\0337",    /* t  ok */
  219.     "o",            /* u  ok */
  220.     "\0336\224\0337",    /* v  ok */
  221.     "/",            /* w  ok */
  222.  
  223.     "o",            /* x  ok */
  224.     "\0336\227\0337",    /* y  ok */
  225.     "\243",            /* z  ok */
  226.     "\0336\226\0337",    /* {  ok */
  227.     "\0336\201\0337",    /* |  ok */
  228.     "y",            /* }  ok */
  229.     "t",            /* ~  ok */
  230.     "\0336\230\0337"    /*    ok */
  231. };
  232.